﻿<Window x:Class="SMS.Shell.Windows.SelectCustomerWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="选择客户" Height="300" Width="400" WindowStartupLocation="CenterScreen">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <DataGrid Name="_gridCustomer" Grid.Row="0" AutoGenerateColumns="False" CanUserAddRows="False" IsReadOnly="True">
            <DataGrid.Columns>
                <DataGridTextColumn Header="名称" Binding="{Binding Caption}" Width="*"/>
                <DataGridTextColumn Header="联系人" Binding="{Binding ContactPerson}" Width="*"/>
                <DataGridTextColumn Header="联系电话" Binding="{Binding Telephone}" Width="*"/>
            </DataGrid.Columns>
        </DataGrid>
        <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Center">
            <Button Content="确定" Name="_btnSubmit" Click="_btnSubmit_Click" />
            <Button Content="取消" Click="Button_Click" />
        </StackPanel>
    </Grid>
</Window>
